<template>
	<view>
		<!-- 密码一般不传（路由传值） -->
		<!-- <navigator url="/pages/components/navigatior/navigate/navigate?Account=y&cid=123" hover-class="navigator-hover">
			<button>跳转到一个新页面</button>
		</navigator> -->
		<button @click="goNavigate()">
			<button>跳转到一个新页面</button>
		</button>

		<navigator url="/pages/index/index" open-type="redirect">
			<button>在当前页面打开</button>
		</navigator>
		<!-- 跳转到导航页必须用switchTab -->
		<navigator url="/pages/tabBar/grammer/grammer" open-type="switchTab">
			<button>跳转到一个Tab页</button>
		</navigator>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title:"navigator",
				Account:'yyx',
				cid:123456
			}
		},
		methods: {
			goNavigate(){
				uni.navigateTo({
					url:"/pages/components/navigatior/navigate/navigate?Account="
					+this.Account
					+"&cid="
					+this.cid
				})
			}
		}
	}
</script>

<style>

</style>